<div class="header">
    <div class="logo"></div>
    <form action="/index.php/stars/xuanshous" id="searchForm" method="post">
        <div class="search">
            <select name="searchType" id="searchType">
                <option>选手</option>
                <option>活动</option>
            </select>
            <input type="text" name="keyWord" class="txt"/><input type="submit" value="搜索" class="btn"/>
        </div>
    </form>
    <script type="text/javascript">
        $(function() {
            $("#searchType").bind("change", function() {
                if ($(this).val() == '选手') {
                    $("#searchForm").attr("action", "/index.php/xuanshous");
                }
                if ($(this).val() == '活动') {
                    $("#searchForm").attr("action", "/index.php/activities");
                }
            })
            $("#userCenter").bind("click", function() {
                login = readcookie("baoNa_isLogin");
                if (login == "yes") {
                    window.location.href = '/index.php/user';
                }
                else {
                    alert("请先登录");
                    return false;
                }
            })
        })
    </script>
    <div class="menu">
        <a href="/" style="background:#605d5c;color:white;">网站首页</a>
        <a href="/index.php/activities">会员活动</a>
        <a href="/index.php/stars/index/1" class="b">人气之星</a>
        <a href="/index.php/news/fengxiangbiao">风向标</a>
        <a href="#" id="userCenter" class="b">个人中心</a>
        <a href="/index.php/news">新闻动态</a>
        <a href="/bbs" class="b">论坛</a>
    </div>

</div>